package com.hc.middleware.ratelimiter.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <h1></h1>
 *
 * @Classname DoRateLimiter
 * @Description
 * @Date 2022/4/24 下午9:48
 * @Created by idiotHU
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface DoRateLimiter {

    double permitsPerSecond() default 0D;   // 限流许可量
    String returnJson() default "";         // 失败结果 JSON

}
